package aqr;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

import aqr.model.Employee;

public class EmployeeDemo {

	public static void main(String[] args) {
		Employee e1 = new Employee(3, "Alice", "Sales", 35);
		Employee e2 = new Employee(2, "Bob", "Trading", 43);
		Employee e3 = new Employee(1, "Charlie", "Finance", 26);
		Employee e4 = new Employee(4, "Alice", "Sales", 38);
		
		List<Employee> employees = new ArrayList<Employee>();
		employees.add(e1);
		employees.add(e2);
		employees.add(e3);
		employees.add(e4);
		
		Collections.sort(employees);
		// Collections.sort(employees, Employee.EmployeeComparator);
		
		for (Employee e : employees) {
			System.out.println("Employee: "+e.toString());
		}
	}

}
